<?php
/*
 * 
 * */
class CRunning{
	// check running
	function chkRunning($filename){
		$datas = array();
		$process = exec("ps -aux|grep ".$filename,$datas);		
		if (count($datas)>2){				
			return true;
		}else{				
			return false;
		}
	}
}

